﻿using AspNetCore.MyCrawler.Model;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Configuration.Json;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Options;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AspNetCore.MyCrawler.Utility
{
    /// <summary>
    /// 系统配置项
    /// </summary>
    public class Constant
    {
        /// <summary>
        /// 数据文件保存路径
        /// </summary>
        public static string DataPath = JsonConfigurationHelper.GetAppsettings("DataPath");   
        /// <summary>
        /// 图片保存路径
        /// </summary>
        public static string ImagePath = JsonConfigurationHelper.GetAppsettings("ImagePath");  

        /// <summary>
        /// 腾讯课堂入口
        /// </summary>
        public static string TencentClassUrl = JsonConfigurationHelper.GetAppsettings("TencentClassUrl");

        public static List<TencentCategoryEntity> CategoryList =  new List<TencentCategoryEntity>();


        public static List<CourseEntity> CourseList = new List<CourseEntity>();


        

        /// <summary>
        /// 用作爬虫在获取数据时候记录数量
        /// </summary>
        public static int Count = 1;
    } 
}
